package cn.wym.ymbill.service.impl

import cn.wym.ymbill.mapper.BillUserBeenMapper
import cn.wym.ymbill.model.BillUserBeen
import cn.wym.ymbill.service.IBillUserService
import org.springframework.stereotype.Service
import javax.annotation.Resource

@Service("BillUserService")
class BillUserService : IBillUserService {

    @Resource
    val billUserBeenMapper: BillUserBeenMapper? = null

    override fun deleteByPrimaryKey(id: Int): Int {
        return billUserBeenMapper?.deleteByPrimaryKey(id)?: -1
    }

    override fun insert(record: BillUserBeen): Int {
        return billUserBeenMapper?.insert(record)?: -1
    }

    override fun insertSelective(record: BillUserBeen): Int {
        return billUserBeenMapper?.insertSelective(record)?: -1
    }

    override fun selectByPrimaryKey(id: Int): BillUserBeen? {
        return billUserBeenMapper?.selectByPrimaryKey(id)
    }

    override fun updateByPrimaryKeySelective(record: BillUserBeen): Int {
        return billUserBeenMapper?.updateByPrimaryKeySelective(record)?: -1
    }

    override fun updateByPrimaryKey(record: BillUserBeen): Int {
        return billUserBeenMapper?.updateByPrimaryKey(record)?: -1
    }
}